package com.jandar.ds.mapper;

import com.jandar.ds.pojo.DbInfo;
import com.jandar.ds.pojo.DbInfoExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface DbInfoMapper {
    long countByExample(DbInfoExample example);

    int deleteByExample(DbInfoExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(DbInfo row);

    int insertSelective(DbInfo row);

    List<DbInfo> selectByExample(DbInfoExample example);

    DbInfo selectByPrimaryKey(Integer id);

    DbInfo selectByDbCode(String code);

    int updateByExampleSelective(@Param("row") DbInfo row, @Param("example") DbInfoExample example);

    int updateByExample(@Param("row") DbInfo row, @Param("example") DbInfoExample example);

    int updateByPrimaryKeySelective(DbInfo row);

    int updateByPrimaryKey(DbInfo row);
}